# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from ragendja.urlsauto import urlpatterns
from ragendja.auth.urls import urlpatterns as auth_patterns
from django.contrib import admin

import econoplot
import blog

admin.autodiscover()

handler500 = 'ragendja.views.server_error'

urlpatterns = auth_patterns + patterns('',
    ('^econoplot/', include('econoplot.urls')),
    ('^news/', include('blog.urls')),
    ('^admin/(.*)', admin.site.root),
    (r'^$', 'econoplot.views.index'),
    ('^chart/(.*)', 'econoplot.views.chart'),
    ('^collection/$', 'econoplot.views.collections'),
    ('^collection/(.*)', 'econoplot.views.collection'),
    ('^about/', 'blog.views.about'),
) + urlpatterns
